if SERVER then return end

-- This is no longer being used because it was stupid that I did it this way anyways.

/*
function ShowShopMenuXP(data)
GetXPName = data:ReadString()

local ShopDermaPanel = vgui.Create( "DFrame" ) -- Creates the frame itself
ShopDermaPanel:SetSize( 500, 400 ) -- Size of the frame
ShopDermaPanel:SetTitle( "Team Deathmatch GunShop!" ) -- Title of the frame
ShopDermaPanel:SetVisible( true )
ShopDermaPanel:Center()
ShopDermaPanel:SetDraggable( false ) -- Draggable by mouse?
ShopDermaPanel:ShowCloseButton( true ) -- Show the close button?
ShopDermaPanel:MakePopup() -- Show the frame

local DisplayHeader = vgui.Create("DLabel", ShopDermaPanel)
DisplayHeader:SetPos(10,30)
DisplayHeader:SetColor( Color( 0, 0, 0, 255 ) )
DisplayHeader:SetFont("default")
DisplayHeader:SetText("Greetings, ")
DisplayHeader:SizeToContents()

local DisplayName = vgui.Create("DLabel", ShopDermaPanel)
DisplayName:SetPos(65,30)
DisplayName:SetColor( Color( 0, 0, 0, 255 ) )
DisplayName:SetFont("default")
DisplayName:SetText(GetXPName)
DisplayName:SizeToContents()

local DisplayerWarning = vgui.Create("DLabel", ShopDermaPanel)
DisplayerWarning:SetPos(10,40)
DisplayerWarning:SetColor( Color( 255, 0, 0, 255 ) )
DisplayerWarning:SetFont("default")
DisplayerWarning:SetText("This Gunshop menu is a beta of this gamemode. So you may experience errors while using this.")
DisplayerWarning:SizeToContents()


local MenuButton = vgui.Create("DButton", ShopDermaPanel)
MenuButton:SetText( "Weapons:" )
MenuButton:SetPos(10, 75)
MenuButton:SetSize( 150, 25 )
MenuButton.DoClick = function ( btn )
local MenuButtonOptions = DermaMenu()
	for k,v in pairs(Weapons) do
	local ov = string.Explode(":", v)
	local nv = string.upper(v)
	local nv = string.gsub(nv,"WEAPON","")
	local nv = string.gsub(nv,"CS","")
	local nv = string.gsub(nv,"_","")
	local nv = string.Explode(":", nv)
		MenuButtonOptions:AddOption(nv[1]..' - Cost: $'..nv[2], function()  
			RunConsoleCommand( "BuyWeaponIndex", ov[1], ov[2], nv[1] )
			ShopDermaPanel:Close()
		end )		
	MenuButtonOptions:Open()
	end	
end

end
usermessage.Hook("ShowShopMenuXP",ShowShopMenuXP)
*/